<?php
/**
 * Created by PhpStorm.
 * User: Cloud
 * Date: 2018/4/9
 * Time: 10:15
 */
?>

<!DOCTYPE html>
<!-- saved from url=(0026)http://www.wjyh.com/office -->
<html><!--[if lt IE 7]>
<div class="ie6_error">还在用<strong>漏洞百出的IE6浏览器</strong>么？为了您的网络安全，请升级浏览器 <a target="_blank"
                                                                           href="http://browsehappy.com">立即升级</a></div>
<![endif]-->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>办公用品_办公用品采购批发价格|采购清单_文具1号</title>

    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta content="always" name="referrer">
    <meta name="keywords" content="办公用品，办公用品采购，办公用品批发，办公用品清单">
    <meta name="description"
          content="文具1号官网【办公用品批发采购】，提供所有办公用品种类清单及价格明细，厂家直销办公用品类办公用品，会计用品，学生文具用品，办公用品清单套装包括:书写用品，簿本纸张，文件存储，办公耗材，桌面文具，学生幼教，封箱装订，办公用纸，办公设备等">
    <link rel="shortcut icon" href="http://www.wjyh.com/favicon.ico">
    <meta property="qc:admins" content="35145416276721063757">
    <meta property="wb:webmaster" content="c3ea0242ae049c17">
    <meta name="baidu-site-verification" content="o3SWzbXFNP">
    <base href="<?php echo base_url(); ?>"/>
    <!--[if lt IE 9]>
    <![endif]-->
    <link href="public/css/reset.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="public/css/category.css">
    <link rel="shortcut icon" href="favicon.ico"/>
    <link rel="stylesheet" href="public/js/layui/css/layui.css">
    <link rel="stylesheet" type="text/css" href="public/css/deliver_address.css"/>
    <link rel="stylesheet" type="text/css" href="public/css/base.css"/>
    <link rel="stylesheet" type="text/css" href="public/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="public/css/cost-center.css"/>
</head>
<body style="background: white;">
<!--common - head -->
<?php $this->load->view('common/header.php'); ?>
<!--common - head end-->
<!--分类搜索面包屑Start-->
<div class="crumb" id="J_crumbs">
    <div class="crumbCon">
        <div class="crumbSlide" id="J_CrumbSlide">
            <a title="上一页" class="crumbSlide-prev" id="J_CrumbSlidePrev" style="visibility: hidden;">&lt;</a>
            <i class="crumbSlide-prev-shadow"></i>

            <div class="crumbClip">
                <ul class="crumbSlide-con clearfix" id="J_CrumbSlideCon">
                    <li>
                        <a class="crumbStrong" href="http://www.wjyh.com/">首页</a>
                        <i class="crumbArrow">&gt;</i>
                    </li>
                    <!--  -->

                    <?php if (isset($p_n) && $p_n) {
                        ?>
                        <li>
                            <a class="crumbStrong crumbDrop-hd j_CrumbDropHd"
                               href="http://www.wjyh.com/office_p<?php echo $p; ?>_c0_b0"
                               title="<?php echo $p_n; ?>"><strong><?php echo $p_n; ?></strong></a><i
                                    class="crumbArrow">&gt;</i>
                        </li>
                    <?php } ?>

                    <?php if (isset($c_n) && $c_n) {
                        ?>
                        <li>
                            <a class="crumbStrong crumbDrop-hd j_CrumbDropHd"
                               href="http://www.wjyh.com/office_p<?php echo $p; ?>_c<?php echo $c; ?>_b0"
                               title="<?php echo $c_n; ?>"><strong><?php echo $c_n; ?></strong></a><i
                                    class="crumbArrow">&gt;</i>
                        </li>
                    <?php } ?>

                    <?php if (isset($b_n) && $b_n) {
                        ?>
                        <li>
                            <a class="crumbStrong crumbDrop-hd j_CrumbDropHd"
                               href="http://www.wjyh.com/office_p0_c0_b<?php echo $b; ?>"
                               title="<?php echo $b_n; ?>"><strong><?php echo $b_n; ?></strong></a><i
                                    class="crumbArrow">&gt;</i>
                        </li>
                    <?php } ?>

                    <?php if ($type == 2) { ?>
                        <li class="crumbSearch">
                            <form name="curSearch" action="office/index" id="J_CrumbSearchForm" method="post">
                                <label class="crumbSearch-label" for="J_CrumbSearchInuput">
                                    <input type="text" name="keywords" value="<?php echo $keywords; ?>"
                                           gdata-default="在当前条件下搜索"
                                           class="crumbSearch-input"
                                           id="J_CrumbSearchInuput" placeholder="在当前条件下搜索">
                                </label>
                                <input type="" value="" id="J_CrumbSearchBtn" class="crumbSearch-btn">
                            </form>
                        </li>
                    <?php } ?>
                </ul>
            </div>
            <i class="crumbSlide-next-shadow"></i>
            <a title="下一页" class="crumbSlide-next" href="javascript:void(0);" id="J_CrumbSlideNext"
               style="visibility: hidden;">&gt;</a>
        </div>
        <p class="crumbTitle j_ResultsNumber">共<span> <?php echo $total ?></span>件相关商品</p>
    </div>
</div>
<!--分类搜索面包屑End-->
<div class="main bts-39" id="">
    <div id="J_SuggestTipWrap">
    </div>
    <div id="J_NavbarWrap">
    </div>
    <div id="J_MinisiteWrap">
    </div>
    <form id="J_FilterNavForm">
        <div class="attrs">
            <!--新增分类-->
            <div class="cateAttrs lsitAttrs">
                <div class="j_Cate attr">
                    <div class="attrKey">清单</div>
                    <div class="attrValues">
                        <ul class="av-expand" style="height: auto;">
                            <li>
                                <?php if ($type == 2) { ?>
                                    <a title="企业清单" href="<?php echo base_url(); ?>office/lists">企业清单</a>
                                <?php } else { ?>
                                    <span class="selected_cate">企业清单</span>
                                <?php } ?>
                            </li>
                            <li>
                                <?php if ($type == 1) { ?>
                                    <a title="不限" href="<?php echo base_url(); ?>office/index">不限</a>
                                <?php } else { ?>
                                    <span class="selected_cate">不限</span>
                                <?php } ?>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
            <!--一级分类-->
            <div class="cateAttrs" id="on">
                <div class="j_Cate attr">
                    <div class="attrKey">分类</div>
                    <div class="attrValues">
                        <ul class="av-expand big_name" style="height: auto;">
                            <?php foreach ($big as $key => $cal): ?>
                                <li class="big">
                                    <?php if ($key == $p) { ?>
                                        <span class="selected_cate"><?php echo $cal ?></span>
                                    <?php } else { ?>
                                        <a title="<?php echo $cal ?>" id="<?php echo $key ?>"
                                           href="<?php echo base_url(); ?>office/index?p=<?php echo $key; ?>&c=0&b=0"><?php echo $cal ?></a>
                                    <?php } ?>
                                </li>
                            <?php endforeach; ?>
                        </ul>
                    </div>
                </div>
            </div>
            <?php if ($small) { ?>
                <!--二级分类-->
                <div class="cateAttrs" id="tw" style="display: block">
                    <div class="j_Cate attr">
                        <div class="attrKey">小类</div>
                        <div class="attrValues">
                            <ul class="av-expand small_name" style="height: auto;">
                                <?php if (count($small)) { ?>
                                    <?php foreach ($small as $key => $cal): ?>
                                        <li class="big">
                                            <?php if ($key == $c) { ?>
                                                <span class="selected_cate"><?php echo $cal ?></span>
                                            <?php } else { ?>
                                                <a title="<?php echo $cal ?>" id="<?php echo $key ?>"
                                                   href="<?php echo base_url(); ?>office/index?p=<?php echo $p; ?>&c=<?php echo $key; ?>&b=0"><?php echo $cal ?></a>
                                            <?php } ?>
                                        </li>
                                    <?php endforeach; ?>
                                <?php } ?>

                            </ul>
                        </div>
                    </div>
                </div>
            <?php } ?>
            <!--子类-->
            <div class="brandAttr" id="th">
                <div class="j_Brand attr">
                    <div class="attrKey">品牌</div>
                    <div class="attrValues">
                        <div class="j_BrandSearch av-search clearfix" style="display: none;">
                            <input type="text" value="">
                        </div>
                        <ul class="av-collapse">
                            <a href="javascript:void(0);" class="more-brand">更多<img src="public/images/u224.png"></a>
                            <?php if ($b == 0) { ?>
                                <li>
                                    <span class="selected_cate">不限</span>
                                </li>
                            <?php } else { ?>
                                <li>
                                    <a href="<?php echo base_url(); ?>office/index?p=<?php echo $p; ?>&c=<?php echo $c; ?>&b=0"
                                       title="不限">不限</a>
                                </li>
                            <?php } ?>
                            <?php foreach (array_slice($brand, 0, 15) as $br): ?>
                                <li class="d_brand" id="<?php echo $br['brand_id'] ?>" key="" title="">
                                    <?php if ($br['brand_id'] == $b) { ?>
                                        <span class="selected_cate"><?php echo $br['brand_name'] ?></span>
                                    <?php } else { ?>
                                        <a href="<?php echo base_url(); ?>office/index?p=<?php echo $p; ?>&c=<?php echo $c; ?>&b=<?php echo $br['brand_id']; ?>"
                                           title="<?php echo $br['brand_name'] ?>">
                                            <?php echo $br['brand_name'] ?> </a>
                                    <?php } ?>
                                </li>
                            <?php endforeach; ?>

                            <!-- 展开后的布局 -->
                            <ul style="display:none;height:80px;overflow-y:auto;clear:both;margin-left:0"
                                class="zk_brand">
                                <?php foreach ($brand as $br): ?>
                                    <li id="<?php echo $br['brand_id'] ?>" key="" title="">
                                        <?php if ($br['brand_id'] == $b) { ?>
                                            <span class="selected_cate"><?php echo $br['brand_name'] ?></span>
                                        <?php } else { ?>
                                            <a href="<?php echo base_url(); ?>office/index?p=<?php echo $p; ?>&c=<?php echo $c; ?>&b=<?php echo $br['brand_id']; ?>"
                                               title=" <?php echo $br['brand_name'] ?>">
                                                <?php echo $br['brand_name'] ?> </a>
                                        <?php } ?>
                                    </li>
                                <?php endforeach; ?>
                            </ul>
                        </ul>
                        <div class="av-btns">
                            <a class="j_SubmitBtn ui-btn-s-primary ui-btn-disable">确定</a>
                            <a class="j_CancelBtn ui-btn-s">取消</a>
                        </div>
                    </div>
                </div>
            </div>

            <div class="attrs-border"></div>

        </div>
    </form>

    <?php if (count($goods)){ ?>
    <div id="filter_box">
        <div class="filter clearfix" id="J_Filter">


            <form id="J_FForm" class="<?php echo $pag_id ?>">
                <a class="fSort <?php echo !$orderAttribute ? 'fSort-cur' : ''; ?>"
                   href="<?php echo modify_url(array('orderAttribute' => '')); ?>" title="点击后恢复默认排序">综合
                    <i class="f-ico-arrow-d"></i>
                </a>

                <a class="fSort <?php echo $orderAttribute == 'orderCollects' ? 'fSort-cur' : ''; ?>" id="orderCollects"
                   href="<?php echo modify_url(array('orderAttribute' => 'orderCollects')); ?>"
                   title="点击后按人气从高到低">人气
                    <i class="f-ico-arrow-d"></i>
                </a>

                <a class="fSort <?php echo $orderAttribute == 'orderRelease' ? 'fSort-cur' : ''; ?>" id="orderRelease"
                   href="<?php echo modify_url(array('orderAttribute' => 'orderRelease')); ?>"
                   title="">新品
                    <i class="f-ico-arrow-d"></i>
                </a>

                <a class="fSort <?php echo $orderAttribute == 'orderSales' ? 'fSort-cur' : ''; ?>" id="orderSales"
                   href="<?php echo modify_url(array('orderAttribute' => 'orderSales')); ?>"
                   title="点击后按月销量从高到低">销量
                    <i class="f-ico-arrow-d"></i>
                </a>

                <a class="fSort <?php echo $orderAttribute == 'orderPrice' ? 'fSort-cur' : ''; ?>" id="orderPrice"
                   href="<?php echo modify_url(array('orderAttribute' => 'orderPrice', 'order' => $order)); ?>"
                   title="点击后按价格从高到低">价格
                    <i class="f-ico-triangle-mt <?php if ($order == 'desc') {
                        echo 'f-ico-triangle-mt-slctd';
                    } ?> "></i>
                    <i class="f-ico-triangle-mb <?php if ($order == 'asc') {
                        echo 'f-ico-triangle-mb-slctd';
                    } ?> ">"></i>
                </a>
                <div class="fPrice" id="J_FPrice">
                    <div class="fP-box">
                        <b class="fPb-item">
                            <i class="ui-price-plain">¥</i>
                            <input type="text" autocomplete="off" maxlength="5"
                                   value="<?php echo isset($_GET['startPrice']) ? $_GET['startPrice'] : ''; ?>"
                                   class="j_FPInput startPrice">
                        </b>
                        <i class="fPb-split"></i>
                        <b class="fPb-item">
                            <i class="ui-price-plain">¥</i>
                            <input type="text" autocomplete="off"
                                   value="<?php echo isset($_GET['endPrice']) ? $_GET['endPrice'] : ''; ?>"
                                   maxlength="5" class="j_FPInput endPrice">
                        </b>
                    </div>

                    <div class="fP-expand">
                        <a class="ui-btn-s" id="J_FPCancel">清空</a>
                        <a class="ui-btn-s-primary searchSubmit" id="J_FPEnter">确定</a>
                    </div>
                </div>
                <a href="javascript:void(0)" class="fType-g fType-cur">大图<i class="fTg-ico"></i></a>
                <a href="javascript:void(0)" class="fType-l">小图<i class="fTl-ico"></i></a>
                <input type="hidden" name="search_condition" value="48">
                <input type="hidden" name="style" value="g">
                <input type="hidden" name="from" value="xl_1_suggest">
                <input type="hidden" name="suggest" value="0_1">
                <input name="q" type="hidden" value="文具">
            </form>


            <p class="ui-page-s">
                <b class="ui-page-s-len"><?php echo $pag_id; ?>/<?php echo ceil($total / 60); ?></b>
                <?php if ($pag_id == 1): ?>
                    <b class="ui-page-s-prev" title="上一页">&lt;</b><a
                            href="<?php echo modify_url(array('curPage' => $pag_id + 1)); ?>"
                            class="ui-page-s-next" title="下一页">&gt;</a>
                <?php elseif ($pag_id == $total / 60): ?>
                    <a href="<?php echo modify_url(array('curPage' => $pag_id - 1)); ?>" class="ui-page-s-next"
                       title="上一页">&lt;</a><b
                            class="ui-page-s-prev" title="下一页">&gt;</b>
                <?php else: ?>
                    <a href="<?php echo modify_url(array('curPage' => $pag_id - 1)); ?>" class="ui-page-s-next"
                       title="上一页">&lt;</a>  <a
                            href="<?php echo modify_url(array('curPage' => $pag_id + 1)); ?>" class="ui-page-s-next"
                            title="下一页">&gt;</a>
                <?php endif; ?>
            </p>
        </div>
    </div>
    <div class=" view view-noSku  clearfix">
        <div class="product_1">


            <?php foreach ($goods as $god): ?>
                <div class="product">
                    <div class="product-iWrap">
                        <div class="pFavirate" style="display: none;"><i></i><span>我喜欢</span></div>
                        <div class="productImg-wrap">
                            <a href="<?php echo base_url(); ?>goods/detail?id=<?php echo $god['goods_id']; ?>"
                               title="<?php echo $god['default_image'] ?>" class="productImg"
                               target="_blank">
                                <img src=" <?php echo $god['default_image'] ?>" alt="<?php echo $god['goods_name'] ?>">
                            </a>
                        </div>
                        <p class="productPrice">
                            <em style="margin-right: 6px;"><b>￥</b> 
                                <?php if($god['adjust_price']):?>
                                    <?php echo $god['adjust_price'] ?>
                                <?php else:?>
                                    <?php echo $god['price'] ?>
                                <?php endif;?>
                                 </em>
                        </p>
                        <p class="productTitle">
                            <a href="<?php echo base_url(); ?>goods/detail?id=<?php echo $god['goods_id']; ?>"
                               target="_blank"
                               title="  <?php echo $god['goods_name'] ?>">
                                <?php echo $god['goods_name'] ?>
                            </a>
                        </p>
                        <div class="productShop">
                            <a class="productShop-name" href="http://chaoshi.wjyh.com/"
                               target="_blank"><?php echo $god['store_name'] ?></a>
                        </div>
                        <p class="productStatus">
                            <!--                            <span>月销量:<em>-->
                            <?php //echo $god['goods_statistics12'] ?><!--</em></span>-->
                            <span style="border-right:none;"><a
                                        href="<?php echo base_url(); ?>goods/detail?id=<?php echo $god['goods_id']; ?>"
                                        target="_blank">评价:<?php echo $god['comments'] ?></a></span>
                        </p>
                    </div>
                </div>
            <?php endforeach; ?>
        </div>
        <!--        //分页-->
        <div class="ui-page">
            <div class="ui-page-wrap">
                <b class="ui-page-num">
                    <?php
                    $count_tag = $total;
                    $this->load->library('pagination');

                    $config['base_url'] = preg_replace('/&?curPage=[^&]*/', '', $url);;//这是一个指向你的分页所在的控制器类/方法的完整的 URL

                    //                    $config['suffix'] = '/';  //给路径添加一个自定义后缀，后缀位于偏移段的后面。

                    //            $config['uri_segment'] = 2; //分页方法自动检测你 URI 的哪一段包含页数，如果你的情况不一样，你可以明确指定它。

                    $config['page_query_string'] = true;
                    $config['query_string_segment'] = 'curPage';

                    $config['total_rows'] = $count_tag; //这个数字表示你需要做分页的数据的总行数。通常这个数值是你查询数据库得到的数据总量
                    $config['per_page'] = 60; //这个数字表示每个页面中希望展示的数量。
                    $config['num_links'] = 5; //放在你当前页码的前面和后面的“数字”链接的数量。比方说值为 2 就会在每一边放置两个数字链接， 就像此页顶端的示例链接那样。
                    $config['use_page_numbers'] = TRUE;  //默认分页的 URL 中显示的是你当前正在从哪条记录开始分页，如果你希望显示实际的页数，将该参数设置为 TRUE 。
                    //  $config['num_tag_open'] = '<a class="ui-page-prev">';//数字链接的起始标签。
                    // $config['num_tag_close'] = '</a>';                                //数字链接的结束标签。
                    $config['cur_tag_open'] = '<b class="ui-page-cur">';            //当前页链接的起始标签。
                    $config['cur_tag_close'] = '</b>';                                 //当前页链接的结束标签。

                    $config['prev_link'] = ' &lt;&lt;上一页 ';//上一页链接显示的文本，如果你不想显示该链接，将其设置为 FALSE 。
                    //  $config['prev_tag_open'] = '<a class="ui-page-prev">';//上一页链接的起始标签。
                    // $config['prev_tag_close'] = '</a>';//上一页链接的结束标签。

                    $config['next_link'] = ' 下一页&gt;&gt; ';//下一页链接显示的文本，如果你不想显示该链接，将其设置为 FALSE 。
                    //  $config['next_tag_open'] = ' <a href="javascript:void(0)"  class="ui-page-next">';//下一页链接的起始标签。
                    //  $config['next_tag_close'] = '</a>';//下一页链接的结束标签。

                    $config['first_link'] = FALSE;//左边第一个链接显示的文本，如果你不想显示该链接，将其设置为 FALSE 。
                    $config['last_link'] = FALSE;//右边最后一个链接显示的文本，如果你不想显示该链接，将其设置为 FALSE 。

                    $this->pagination->initialize($config);
                    echo $this->pagination->create_links();
                    ?>

                    <b class="ui-page-skip" style="margin-top:0px;">
                        <?php if ($count_tag && ceil($count_tag / 60) > 1): ?>
                            共<?php echo ceil($count_tag / 60); ?>页，
                        <?php endif; ?>
                        <?php if (ceil($count_tag / 60) > 1): ?>
                            到第<input type="text" name="jumpto" class="ui-page-skipTo" size="3" value="1"
                                     gdata-totalpage="<?php echo ceil($count_tag / 60); ?>">页
                            <button type="button" id="pageSub" class="ui-btn-s searchPage">确定</button>
                        <?php endif; ?>
                    </b>
            </div>
        </div>
    </div>
</div>
<?php } else {
    ?>
    <div class=" view view-noSku  clearfix" id="J_ItemList">
        <br><br><br>
        <div class="product_search_empty J-product_search_empty">
            <h1 style="clear:both;">
                <img src="http://www.wjyh.com/views/images/link/warn.jpg"
                     style="position: relative; top: 3px; display: inline;" original="../views/images/link/warn.jpg">&nbsp;抱歉，没有找到<?php echo $keywords; ?>
                的搜索结果！
            </h1>
            <style>.crumbCon, #filter_box {
                    /*display: none;*/
                }</style>
        </div>
    </div>
<?php } ?>
<?php $this->load->view('common/bottom.php'); ?>
<script src="public/js/layui/layui.js"></script>
<script type="text/javascript" src="public/js/jquery.1.7.1-min.js" charset="utf-8"></script>
<script type="text/javascript" src="public/js/jquery.query-object.js" charset="utf-8"></script>
<script type="text/javascript">
    taltol = '';
    $('#pageSub').click(function () {
        var page = $('.ui-page-skipTo').val();
        if (page && page > 0) {
            if (page > <?php echo $pages;?>) {
                alert('跳转页必须小于总页数！')
            } else {
                window.location.search = jQuery.query.set("curPage", page);
            }
        } else {
            window.location.search = jQuery.query.set("curPage", 1);
        }
    });
    $("#J_CrumbSearchBtn").click(function (e) {
        e.stopPropagation();
        var keyword = $('#J_CrumbSearchInuput').val();
        window.location.search = jQuery.query.set("keywords", keyword);
    })
    //价格区间查商品
    $('#J_FPEnter').click(function () {
        var startPrice = $('.startPrice').val();
        var endPrice = $('.endPrice').val();
        window.location.search = jQuery.query.set("startPrice", $('.startPrice').val()).set("endPrice", $('.endPrice').val());
    });
    //喜欢
    //         $(".product").mouseover(function () {
    //             $(this).find(".pFavirate").css("display", "block");
    //         });
    //         $(".product").mouseout(function () {
    //             $(this).find(".pFavirate").css("display", "none");
    //         });

    $(".more-brand").click(function () {

        if ($(this).text() == '更多') {
            $(".d_brand").hide();
            $(".zk_brand").show();
            $(".hover-zm").show();
            $(this).html("收起<img src='public/images/u219.png'>");
        } else {
            $(".d_brand").show();
            $(".zk_brand").hide();
            $(".hover-zm").hide();
            $(this).html("更多<img src='public/images/u224.png'>");
        }
    });

    function bigSmallChange(s_category) {
        if ($.browser.msie && ($.browser.version == "6.0")) {
            $('form[name="curSearch"]').submit();
        } else {
            $('.main').attr("id", s_category)
        }
        return false;
    }

    //大图，小图
    $('.fType-g').click(function () {//大图
        $(this).addClass("fType-cur");
        $('.fType-l').removeClass("fType-cur");
        $('input[name="showType"]').val(0);
        bigSmallChange("");
    });
    $('.fType-l').click(function () {//小图
        $(this).addClass("fType-cur");
        $('.fType-g').removeClass("fType-cur");
        $('input[name="showType"]').val('l');
        bigSmallChange("s_category");
    });
    $(document).click(function () {

        $('.fP-expand').hide();

    });
    $('.j_FPInput').click(function (e) {
        e.stopPropagation();
        $('.fP-expand').show();
    });
    $('#J_FPCancel').click(function () {
        $(".j_FPInput").val("")
        return false;
    });
    $('.fP-expand').click(function (e) {
        e.stopPropagation();
    });
    $("#J_CrumbSearchInuput").focus(function () {
        if (this.value == $(this).attr('gdata-default'))
            this.value = '';
    });


</script>
<script>


</script>
</body>
</html>
